import matplotlib.pyplot as plt

# 数据
labels = ['Precision', 'Recall', 'F1-Score', 'mAP-50']
yolov5 = [0.73, 0.688, 0.711, 0.76]  # 假设的数据点
cbam = [0.74, 0.74, 0.74, 0.77]    # 假设的数据点
c3_cbam = [0.73, 0.75, 0.74, 0.79] # 假设的数据点
c3_cbam_focal_eiou = [0.74, 0.76, 0.75, 0.81] # 假设的数据点

# 创建图表
plt.figure(figsize=(10, 6))

# 绘制每条线
plt.plot(labels, yolov5, 'go-', label='YOLOv5')

plt.plot(labels, c3_cbam, 'rd-', label='C3-CBAM')


# 添加图例
plt.legend()

# 显示图表
plt.show()